<?php
	header('Content-type: application/vnd.google-earth.kml+xml');
?>

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>

<?php echo '<kml xmlns="http://www.opengis.net/kml/2.2">' ?>

	<Document>

	<?php
		foreach($this->params->elements as $v)
		{
			$v->render();
		}
	?>

	</Document>
</kml>
